# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo02
# Description:
# Author:       98745
# Date:         2019/3/2
#-------------------------------------------------------------------------------

class myclass:
    def get(self):
        return self.name
    def set(self,name):
        self.name=name
        self.__out()
    def __out(self):
        print('name={name}'.format(name=self.name))
m=myclass()
import inspect
me=inspect.getmembers(m,predicate=inspect.ismethod)
print(me)
for met in me:
    print(met[0])
print('--------')
m.set('bill')
print(m.get())
m._myclass__out()
# print(m.__out())